package br.com.velp.vskygeo.dto;

import br.com.velp.vskygeo.util.DateTimeUtils;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Eduardo
 */
public class HistoricoDadoLidoDTO implements InterfaceDTO{
    
    private int idMonitorado;
    private Date data;
    private double latitude;
    private double longitude;

    public int getIdMonitorado() {
        return idMonitorado;
    }

    public void setIdMonitorado(int idMonitorado) {
        this.idMonitorado = idMonitorado;
    }

    public Date getData() {
        return DateTimeUtils.getDateTimeGmtBrasil(data);
    }

    public void setData(Date data) {
        this.data = data;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    @Override
    public Map<String, Object> getMapaInformacao() {
        
        Map<String, Object> mapaInformacao = new HashMap<String, Object>();
        
        mapaInformacao.put("idMonitorado", getIdMonitorado());
        mapaInformacao.put("data", getData());
        mapaInformacao.put("latitude", getLatitude());
        mapaInformacao.put("longitude", getLongitude());
        
        return mapaInformacao;
        
    }

    @Override
    public String getTipoInformacao() {
        return "ULTIMO_DADO_LIDO";
    }
    
}
